module.exports = {
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: []
    },
    electronBuilder: {
      nodeIntegration: true,
      contextIsolation: false,
      externals: ['my-native-dep'],
      nodeModulesPath: ['../../node_modules', './node_modules'],
      builderOptions: {
        "appId": "com.example.app",
        "productName":"嘉仪 Http Proxy",
        "copyright":"Copyright © 2025",
        "directories":{
            "output":"./dist"
        },
        "win":{
            "icon":"./logo.ico",
            "target": [
                {
                    "target": "nsis",
                    "arch": [
                        "x64"
                    ]
                }
            ]
        },
        "nsis": {
          "oneClick": false,
          "allowToChangeInstallationDirectory": true,
          "perMachine": false,
          "createDesktopShortcut": true,
          "createStartMenuShortcut": true,
          "shortcutName": "嘉仪 Http Proxy",
          "deleteAppDataOnUninstall": true,
          "installerIcon": "./logo.ico",
          "uninstallerIcon": "./logo.ico",
          "installerHeaderIcon": "./logo.ico",
          "allowElevation": true,
          "runAfterFinish": true
        }
      }
    }
  }
}